package com.lottery.material.dao.transaction;

import com.lottery.material.pojo.transaction.UserEarnRecord;
import com.lottery.material.vo.portal.transaction.EarnRecordStatisticsVo;
import com.lottery.material.vo.portal.transaction.EarnRecordVo;

import java.util.List;
import java.util.Map;

/**
 * @description 用户收益明细记录Mapper
 * @author rambo
 * @date 2019年4月17日 下午7:18:16
 */
@SuppressWarnings("JavaDoc")
public interface UserEarnRecordMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(UserEarnRecord record);

    Integer insertSelective(UserEarnRecord record);

    UserEarnRecord selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(UserEarnRecord record);

    Integer updateByPrimaryKey(UserEarnRecord record);


    /**
     * 个人收益统计
     * @Author 焦阳
     * @param map
     * @return
     */
    List<EarnRecordVo> findIncomeListByUserId(Map<String, Object> map);
}
